<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 单项数据绑定，一般用在标签的属性里面，获取值 -->
        <h1>{{content}}</h1>
        <h1>{{message}}</h1>
        <br>
        <h1 v-bind:title="message">
            {{content}}
        </h1>
        <br>
        <h1 :title="message">
            {{content}}
        </h1>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                content: '我是标题',
                message: '页面加载于 ' + new Date().toLocaleString()
            },
            methods: {}
        });
    </script>
</body>

</html>